package com.chance.cc.crawler.development.command.schedule.kuaihe;

import com.chance.cc.crawler.development.command.job.domain.kuaihe.KuaiHeCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/1/24 14:59
 * @Description
 *      1919快喝
 **/
public class KuaiheCrawlerJobSchedule {


    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);


    public static void main(String[] args) {
        republishCrawlerJobInfo(KuaiHeCrawlerScheduleJob.publishCrawlerScheduleJobInfo().generateCrawlerTriggerKey());
    }

    public static void republishCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.republishCrawlerJob(triggerKey,"crawler_dev_host");
    }


    public static void deleteCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,"crawler_dev_host");
    }

}
